#{extends 'main.html' /}
#{set 'moreStyles'}
	#{stylesheet 'tablesorter.css' /}
#{/set}
	<script type="text/javascript">
	</script>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-BR">

  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  

<title>Busca Avançada</title>
</head>
<body>

<h2>Listagem de Favoritos</h2>
<hr style="margin-top: 0" />

#{ifnot imovelFav}
	<h4>Sua lista de favoritos está vazia.</h4>
#{/ifnot}
#{else}
	<table id="lista" class="table tablesorter table-bordered table-striped">
		<thead>
			<tr>
				<th></th>
				<th>Ref:</th>
			 	<th>Descrição</th>
				<th>Valor</th>
				<th>CEP</th>
			</tr>
		</thead>
		<tbody>
			#{list imovelFav,as:'imovel'}
				<tr>
					<td><a class="btn btn-small" href="@{imovels.mostrar(imovel.id)}">Ver imóvel &raquo;</a></td>
					<td class="nome-imovel"><a href="@{imovels.mostrar(imovel.id)}"></a>${imovel.id}</td>
					<td>${imovel.descricao}</td>
					<td>${imovel.valor}</td>
					<td>${imovel.cep}</td>
				</tr>
			#{/list}
		</tbody>
	</table>

#{/else}
</body>
</html>